<%@ page import ="com.easyattendance.services.AddTeacherService" %>
<%@ page import ="com.easyattendance.model.Teacher" %>
<%
	String current_user = (String)session.getAttribute("currentUser");
	AddTeacherService teacherService = new AddTeacherService();
	Teacher teacher_role = teacherService.getTeacherByEmailId(current_user);
%>
<!-- Nav -->
		<nav id="nav">
			<ul>
				<li id="takeAttendance"><a href="<%=request.getContextPath()%>/views/teacher/takeAttendance.jsp">Take Attendance</a></li>
				<li id="viewFullTimeTable"><a href="<%=request.getContextPath()%>/views/teacher/viewFullTimeTable.jsp">Full Time Table</a></li>
				<li id="materialSettings"><a href="<%=request.getContextPath()%>/views/teacher/materialSettings.jsp">Material Settings</a></li>
				<li id="assignmentSettings"><a href="<%=request.getContextPath()%>/views/teacher/assignmentSettings.jsp">Assignment Settings</a></li>
				<li id="generalSettings"><a href="<%=request.getContextPath()%>/views/teacher/generalSettings.jsp">General Settings</a></li>				
				<li id="selectClass"><a href="<%=request.getContextPath()%>/views/teacher/selectClass.jsp">Update Assignment Submission List</a></li>				
				<li id="assignmentReport"><a href="<%=request.getContextPath()%>/views/teacher/assignmentReports.jsp">View Assignment Report</a></li>				
				
				<% if(teacher_role.isClassTeacher()) { %>
					<!-- Below Links must be accessible to CLASS TEACHER only. -->
					<li id="studentSettings"><a href="<%=request.getContextPath()%>/views/teacher/studentSettings.jsp">Student Settings</a></li>
					<li id="setTimeTable"><a href="<%=request.getContextPath()%>/views/teacher/setTimeTable.jsp">Set Time Table</a></li>
					<li id="selectStudentElectives"><a href="<%=request.getContextPath()%>/views/teacher/selectStudentElectives.jsp">Select Student Electives</a></li>
					<li id="subjectSettings"><a href="<%=request.getContextPath()%>/views/teacher/subjectSettings.jsp">Subject Settings</a></li>
					<li id="manageStudentLeave"><a href="<%=request.getContextPath()%>/views/teacher/manageStudentLeave.jsp">Manage Student Leave</a></li>
					<li id="editAttendance"><a href="<%=request.getContextPath()%>/views/teacher/editAttendance.jsp">Edit Attendance</a></li>
					
				<% } %>
				<li id="logout"><a href="<%=request.getContextPath()%>/views/logout.jsp">Logout</a></li>
			</ul>
		</nav>